<?php $this->_extends('../_layouts/default_layout');?>
<?php $this->_block('contents');?>
<script src="<?=Q::ini('custom_system/base_url')?>js/jq.mselect.js?"></script>
<script type="text/javascript">
$(function(){
	$(".datepicker").datepicker({dateFormat: 'yy-mm-dd', changeMonth: true});
	var product_categories_data = <?=$product_categories?>;
	$(document).mselect(product_categories_data, 'select_categories_id', 'select_categories_id', '');
	$(".selected_categories_id").click(function(){
		var product_categories_id = '';
		if ($("#product_categories_id").val())
		{
			product_categories_id = $("#product_categories_id").val() + ','
		}
		product_categories_id += $("#select_categories_id").val()
		$("#product_categories_id").val(product_categories_id);
	});
});
</script>
<fieldset><legend>查询条件</legend>
<form method="get" id="unsalable_product_form">
<?include (Q::ini('custom_system/elements_dir') . 'searchform_element.php');?>
<table class="form_table">
<tr>
	<th>时间结点</th>
	<td><input type="text" name="node_time" class="datepicker" value="<?=isset($_GET['node_time']) ? $_GET['node_time'] : date('Y-m-d');?>" /></td>
</tr>
<tr>
	<th>滞销天数</th>
	<td><input type="text" name="unsalable_days" value="<?=isset($_GET['unsalable_days']) ? $_GET['unsalable_days'] : ''?>" size="10" /></td>
</tr>
<tr>
	<th>添加分类</th>
	<td><input type="hidden" id="select_categories_id" /> <a href="javascript: void(0);" class="selected_categories_id">添加</a></td>
</tr>
<tr>
	<th>产品分类</th>
	<td><input type="text" name="product_categories_id" id="product_categories_id" value="<?=isset($_GET['product_categories_id']) ? $_GET['product_categories_id'] : ''?>" size="60" /></td>
	<td>说明：多个产品分类用英文逗号分开</td>
</tr>
<tr>
	<th>剔除产品</th>
	<td><input type="text" name="no_sku" value="<?=isset($_GET['no_sku']) ? $_GET['no_sku'] : ''?>" size="60" /></td>
	<td>说明：剔除多个产品用英文逗号分开</td>
</tr>
<tr>
	<td colspan="2">
		<input type="hidden" name="is_search" value="1" />
		<input type="submit" class="button" value="查询" />
	</td>
</tr>
</table>
</form>
</fieldset>
<?php $this->_endblock();?>